﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="viewPosts.ascx.cs" Inherits="sdamarketing.viewPosts" %>

<style type="text/css">
    .style1
    {
        width: 350px;
    }
</style>

<asp:Repeater ID="rep1" runat="server" OnItemDataBound="rep1_ItemDataBound">
    <HeaderTemplate><asp:Label ID="lbl" runat="server"> </asp:Label>
<table class="style1">
    </HeaderTemplate>
    <ItemTemplate>

    <tr>
        <td>
           
           <asp:Literal ID="litname" runat="server"></asp:Literal>
           <asp:Image ID="profilPicture" ImageUrl='<%# "http://student.labs.ii.edu.mk/ii9920/Uploads/"+DataBinder.Eval(Container.DataItem, "username")+"/profilePIC.jpg"%>' runat="server" Width="80px" Height="60px" BorderColor="#9999FF" BorderStyle="Dashed" BorderWidth="1" />
        </td>
    </tr>
    <tr>
        <td bgcolor="#9EBEF5">
            
            <asp:Label ID="lblUsername" runat="server" Text='<%#"Од: "+ DataBinder.Eval(Container.DataItem, "username") %>' ForeColor="Black"> </asp:Label>
            <br />
           
        </td>
    </tr>
    <tr>
        <td >
            <asp:Label ID="lblStatus" runat="server" Text='<%#"Статус: "+DataBinder.Eval(Container.DataItem, "Status") %>' ForeColor="Black"> </asp:Label>
            <br />
        </td>
    </tr>
    <tr>
        <td bgcolor="#CCCCCC">
           <asp:Label ID="LabelShowYouTubeVideo" Text='<%# DataBinder.Eval(Container.DataItem, "VideoURL") %>' runat="server"></asp:Label>
        </td>
    </tr>
   <tr>
        <td>
           <asp:Label ID="opisVid" Text="Опис на видеото:" runat="server" ForeColor="Gray"></asp:Label>
           <asp:Label ID="LabelOpisVideo" Text='<%# DataBinder.Eval(Container.DataItem, "VideoOpis") %>' runat="server" ForeColor="#3366FF"></asp:Label>
           <br /> <br />
           <hr size="1"  />
        </td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    
</table>
    
    </FooterTemplate>

</asp:Repeater>




